<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.19"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simple TDMA implementation for OMNeT++: src/rlc/RlcCore.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Simple TDMA implementation for OMNeT++
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.19 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_a7e1ddad7dbfd75cb4c22e410a616162.html">rlc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">RlcCore.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __INET_TDMA_RLC_CORE_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __INET_TDMA_RLC_CORE_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="struct_abstract_packet.html">   12</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_abstract_packet.html">AbstractPacket</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="struct_abstract_packet.html#ae2916a35231c79115c15026595e76104">   14</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct_abstract_packet.html#ae2916a35231c79115c15026595e76104">size</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;};</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html">   21</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_abstract_frame.html">AbstractFrame</a> {</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html#af78a59fc54428f144182b73b9c855b23">   23</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct_abstract_frame.html#af78a59fc54428f144182b73b9c855b23">size</a>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html#a4fbe76d19a8fec73edb66c419fe00bc1">   25</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct_abstract_frame.html#a4fbe76d19a8fec73edb66c419fe00bc1">seqNum</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html#ab2531ba81a888ccf3dc395e7514d7cb5">   27</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="struct_abstract_frame.html#ab2531ba81a888ccf3dc395e7514d7cb5">isEnd</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html#ae55e2d5c13ed5b95f0a22d67837d2a3c">   29</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="struct_abstract_frame.html#ae55e2d5c13ed5b95f0a22d67837d2a3c">isStart</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="struct_abstract_frame.html#a3a54307648ba317af6e6b9355085b3b8">   31</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="struct_abstract_frame.html#a3a54307648ba317af6e6b9355085b3b8">ts</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;};</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_rlc_core.html">   42</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_rlc_core.html">RlcCore</a> {</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a48c71d3a03e5e2231b38b3b2722cfc43">   45</a></span>&#160;        vector&lt;AbstractFrame&gt; <a class="code" href="class_rlc_core.html#a48c71d3a03e5e2231b38b3b2722cfc43">receivedFrames</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a97af5f125410bb76b884e130b7602262">   48</a></span>&#160;        vector&lt;AbstractPacket&gt; <a class="code" href="class_rlc_core.html#a97af5f125410bb76b884e130b7602262">packetQueue</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <a class="code" href="class_rlc_core.html">RlcCore</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        ~<a class="code" href="class_rlc_core.html">RlcCore</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a4574f7e2ec51323c53bf2f32fb94c986">   61</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_rlc_core.html#a4574f7e2ec51323c53bf2f32fb94c986">addFrame</a>(<a class="code" href="struct_abstract_frame.html">AbstractFrame</a> frame);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a08d196d5209401ed68cd99d7ec2875f0">   66</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_rlc_core.html#a08d196d5209401ed68cd99d7ec2875f0">addPacket</a>(<a class="code" href="struct_abstract_packet.html">AbstractPacket</a> packet);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a02472c960e8a4bd52c3ae638f055af0e">   71</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_rlc_core.html#a02472c960e8a4bd52c3ae638f055af0e">hasFrame</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a7c9ad4e279f99d546d621442acea6064">   76</a></span>&#160;        <a class="code" href="struct_abstract_frame.html">AbstractFrame</a> <a class="code" href="class_rlc_core.html#a7c9ad4e279f99d546d621442acea6064">getFrame</a>(<span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_rlc_core.html#a71b029f8a8e64f46dc27815ca1e7f27a">   81</a></span>&#160;        vector&lt;AbstractPacket&gt; <a class="code" href="class_rlc_core.html#a71b029f8a8e64f46dc27815ca1e7f27a">getCompletePackets</a>();</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;};</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_rlc_core_html_a08d196d5209401ed68cd99d7ec2875f0"><div class="ttname"><a href="class_rlc_core.html#a08d196d5209401ed68cd99d7ec2875f0">RlcCore::addPacket</a></div><div class="ttdeci">void addPacket(AbstractPacket packet)</div></div>
<div class="ttc" id="aclass_rlc_core_html_a71b029f8a8e64f46dc27815ca1e7f27a"><div class="ttname"><a href="class_rlc_core.html#a71b029f8a8e64f46dc27815ca1e7f27a">RlcCore::getCompletePackets</a></div><div class="ttdeci">vector&lt; AbstractPacket &gt; getCompletePackets()</div></div>
<div class="ttc" id="aclass_rlc_core_html_a02472c960e8a4bd52c3ae638f055af0e"><div class="ttname"><a href="class_rlc_core.html#a02472c960e8a4bd52c3ae638f055af0e">RlcCore::hasFrame</a></div><div class="ttdeci">bool hasFrame()</div></div>
<div class="ttc" id="aclass_rlc_core_html_a97af5f125410bb76b884e130b7602262"><div class="ttname"><a href="class_rlc_core.html#a97af5f125410bb76b884e130b7602262">RlcCore::packetQueue</a></div><div class="ttdeci">vector&lt; AbstractPacket &gt; packetQueue</div><div class="ttdef"><b>Definition:</b> RlcCore.h:48</div></div>
<div class="ttc" id="aclass_rlc_core_html"><div class="ttname"><a href="class_rlc_core.html">RlcCore</a></div><div class="ttdoc">RlcCore is a pure C++ implementation of the fragmentation/reassembly logic.</div><div class="ttdef"><b>Definition:</b> RlcCore.h:42</div></div>
<div class="ttc" id="astruct_abstract_packet_html"><div class="ttname"><a href="struct_abstract_packet.html">AbstractPacket</a></div><div class="ttdoc">The AbstractPacket is a data structure to decouple packet representation from the internal OMNeT++/IN...</div><div class="ttdef"><b>Definition:</b> RlcCore.h:12</div></div>
<div class="ttc" id="astruct_abstract_packet_html_ae2916a35231c79115c15026595e76104"><div class="ttname"><a href="struct_abstract_packet.html#ae2916a35231c79115c15026595e76104">AbstractPacket::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> RlcCore.h:14</div></div>
<div class="ttc" id="astruct_abstract_frame_html"><div class="ttname"><a href="struct_abstract_frame.html">AbstractFrame</a></div><div class="ttdoc">The AbstractFrame is a data structure to decouple packet representation from the internal OMNeT++/INE...</div><div class="ttdef"><b>Definition:</b> RlcCore.h:21</div></div>
<div class="ttc" id="astruct_abstract_frame_html_ab2531ba81a888ccf3dc395e7514d7cb5"><div class="ttname"><a href="struct_abstract_frame.html#ab2531ba81a888ccf3dc395e7514d7cb5">AbstractFrame::isEnd</a></div><div class="ttdeci">bool isEnd</div><div class="ttdef"><b>Definition:</b> RlcCore.h:27</div></div>
<div class="ttc" id="astruct_abstract_frame_html_ae55e2d5c13ed5b95f0a22d67837d2a3c"><div class="ttname"><a href="struct_abstract_frame.html#ae55e2d5c13ed5b95f0a22d67837d2a3c">AbstractFrame::isStart</a></div><div class="ttdeci">bool isStart</div><div class="ttdef"><b>Definition:</b> RlcCore.h:29</div></div>
<div class="ttc" id="astruct_abstract_frame_html_af78a59fc54428f144182b73b9c855b23"><div class="ttname"><a href="struct_abstract_frame.html#af78a59fc54428f144182b73b9c855b23">AbstractFrame::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> RlcCore.h:23</div></div>
<div class="ttc" id="astruct_abstract_frame_html_a4fbe76d19a8fec73edb66c419fe00bc1"><div class="ttname"><a href="struct_abstract_frame.html#a4fbe76d19a8fec73edb66c419fe00bc1">AbstractFrame::seqNum</a></div><div class="ttdeci">int seqNum</div><div class="ttdef"><b>Definition:</b> RlcCore.h:25</div></div>
<div class="ttc" id="aclass_rlc_core_html_a7c9ad4e279f99d546d621442acea6064"><div class="ttname"><a href="class_rlc_core.html#a7c9ad4e279f99d546d621442acea6064">RlcCore::getFrame</a></div><div class="ttdeci">AbstractFrame getFrame(int size)</div></div>
<div class="ttc" id="astruct_abstract_frame_html_a3a54307648ba317af6e6b9355085b3b8"><div class="ttname"><a href="struct_abstract_frame.html#a3a54307648ba317af6e6b9355085b3b8">AbstractFrame::ts</a></div><div class="ttdeci">double ts</div><div class="ttdef"><b>Definition:</b> RlcCore.h:31</div></div>
<div class="ttc" id="aclass_rlc_core_html_a48c71d3a03e5e2231b38b3b2722cfc43"><div class="ttname"><a href="class_rlc_core.html#a48c71d3a03e5e2231b38b3b2722cfc43">RlcCore::receivedFrames</a></div><div class="ttdeci">vector&lt; AbstractFrame &gt; receivedFrames</div><div class="ttdef"><b>Definition:</b> RlcCore.h:45</div></div>
<div class="ttc" id="aclass_rlc_core_html_a4574f7e2ec51323c53bf2f32fb94c986"><div class="ttname"><a href="class_rlc_core.html#a4574f7e2ec51323c53bf2f32fb94c986">RlcCore::addFrame</a></div><div class="ttdeci">void addFrame(AbstractFrame frame)</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.19
</small></address>
</body>
</html>
